import request from '@/plugins/request';

// 素材库——类别列表
export function materialtags(data) {
    return request({
      url: "/v1/material/tags",
      method: "get",
      params: data,
    });
}

// 素材库——类别图上传
export function materialuploadtagsupload(data) {
    return request({
        url: "/v1/material/upload/tags-upload",
        method: "post",
        data,
    });
}

// 素材库——类别添加
export function materialtagscatesadd(data) {
    return request({
        url: "/v1/material/tags/cates-add",
        method: "post",
        data,
    });
}

// 素材库——类别点击次数增加
export function materialtagsclickadd(data) {
    return request({
        url: "/v1/material/tags/click-add",
        method: "post",
        data,
    });
}

// 素材库——图片上传
export function materialuploadimgsupload(data) {
    return request({
        url: "/v1/material/upload/imgs-upload",
        method: "post",
        data,
    });
}

// 素材库——图片添加【保存数据】
export function materialimgimgupload(data) {
    return request({
        url: "/v1/material/img/img-upload",
        method: "post",
        data,
    });
}

// 素材库——图片列表
export function materialimgimglist(data) {
    return request({
      url: "/v1/material/img/img-list",
      method: "get",
      params: data,
    });
}

// 素材库——图片点击次数增加
export function materialimgclickadd(data) {
    return request({
        url: "/v1/material/img/click-add",
        method: "post",
        data,
    });
}

// 素材库——添加标签
export function materialimgtagsadd(data) {
    return request({
        url: "/v1/material/img/tags-add",
        method: "post",
        data,
    });
}

// 素材库——图片删除【移入回收站】
export function materialimgimgdel(data) {
    return request({
        url: "/v1/material/img/img-del",
        method: "post",
        data,
    });
}

// 素材库——变更类别
export function materialimgcateschange(data) {
    return request({
        url: "/v1/material/img/cates-change",
        method: "post",
        data,
    });
}

// 素材库——图片替换
export function materialimgimgchange(data) {
    return request({
        url: "/v1/material/img/img-change",
        method: "post",
        data,
    });
}

// 素材库——回收站列表
export function materialimgrecyclelist(data) {
    return request({
      url: "/v1/material/img/recycle-list",
      method: "get",
      params: data,
    });
}

// 素材库——还原图片
export function materialimgimgreduction(data) {
    return request({
        url: "/v1/material/img/img-reduction",
        method: "post",
        data,
    });
}

// 素材库——彻底删除图片
export function materialimgimgcompletelydel(data) {
    return request({
        url: "/v1/material/img/img-completely-del",
        method: "post",
        data,
    });
}

// 素材库——视频上传
export function materialuploadvideoupload(data) {
    return request({
        url: "/v1/material/upload/video-upload",
        method: "post",
        data,
    });
}

// 素材库——视频添加
export function materialvideovideoadd(data) {
    return request({
        url: "/v1/material/video/video-add",
        method: "post",
        data,
    });
}

// 素材库——热门图片【最多显示100张】
export function materialimghotlist(data) {
    return request({
      url: "/v1/material/img/hot-list",
      method: "get",
      params: data,
    });
}
// 视频列表
export function materialvideovideolist (data) {
    return request({
        url: '/v1/material/video/video-list',
        method: 'get',
        params: data
    })
}
// 添加视频名称
export function materialvideoaddremark (data) {
    return request({
        url: '/v1/material/video/add-remark',
        method: 'post',
        data
    })
}
// 视频点击添加数
export function materialvideoclickadd (data) {
    return request({
        url: '/v1/material/video/click-add',
        method: 'post',
        data
    })
}
// 视频删除移入回收站
export function materialvideovideodel (data) {
    return request({
        url: '/v1/material/video/video-del',
        method: 'post',
        data
    })
}
